<?php
/*DEE_DESC
 $templ=array(
	//Название шаблона в списке ОБЯЗАТЕЛЬНОЕ
	'title'=>'Сервис подбора аксессуаров',
	//Настройки описания стандартных полей
	'fields_names'=>array(
		'text1'=>'Короткое описание',
		'text2'=>'Полное описание',
		)
	);
//DEE_DESC_END*/

	$view->gText .= $view->printH1('v');

	$view->gText .= $view->text1;
	
	$brands_option_list = '<option value="">Выберите производителя</option>';

	$conn->query("SELECT distinct brand FROM store_products_cache where parents = '#5##39#' order by brand");
	while( $row = $conn->fetch() ) {
		$brands_option_list .= '<option value="'.$row->brand.'">'.$row->brand.'</option>';
	}

	$view->gText .= '
	<div class="definition_accessories">
		<ul class="model_options">
			<li class="model_options_item">
				<select name="brand_options" class="b-core-ui-select__select" >
					'.$brands_option_list.'
				</select>
			</li>
			
			<li class="model_options_item definition_models">
				<select name="modal_options" class="b-core-ui-select__select" >
					<option value="">---</option>
				</select>
			</li>
		</ul>
		
		<div class="accessories_block">

			<div class="accessories_title bag_title like_h3"></div>
			<ul class="accessories_products bag_accessories">
			</ul>
			
			<div class="accessories_title filter_title like_h3"></div>
			<ul class="accessories_products filter_accessories">
			</ul>

			<div class="accessories_title tube_title like_h3"></div>
			<ul class="accessories_products tube_accessories">
			</ul>
			
			<div class="accessories_title nozzle_title like_h3"></div>
			<ul class="accessories_products nozzle_accessories">
			</ul>
			
		</div>
	</div>
	';


	$view->gText .= $view->text2;

